﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace RemoteWrapper
{
    public class RemotingClass:MarshalByRefObject, RemoteInterface.IRemotingClass
    {
        static StringBuilder filelist = new StringBuilder();

        public RemotingClass()
        {
            Console.WriteLine("RemotingClass Object activated");
        
        }

        public StringBuilder uploadToServer(string filename)
        {
            filelist.Append(filename);
            filelist.Append("\n");
            Console.WriteLine("RemoteWrapper::uploadToServer File: " + filename);
            return filelist;
        }

        public void downloadFromServer(string filename)
        { 
        
        }

        public StringBuilder getFilelist()
        {
            return filelist;
        }
    }
}
